<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script>


const instance = axios.create({
  baseURL: 'http://localhost:8000/api',
  timeout: 3000,
  headers: {'X-Requested-With': 'XMLHttpRequest'},
  proxy: {
    host: '127.0.0.1',
    port: 8000,
    auth: {
      username: '',
      password: ''
    }
  },
});



instance.get('/catelist')
        .then(function (response) {
            console.log(response);
        })
        .catch(function (error) {
            console.log(error);
        });
    </script>
</body>
</html>